 package com.superpai.view.download; 

import android.graphics.Bitmap;

/**
 * @author Kadar.Li
 * @date 2011-7-7
 * @Description 任务下载对象
 * @version V1.0 
 */
public class DownloadObj {

	/** 下载地址 **/
	private String fileUrl;
	
	/** 文件名称 **/
	private String fileName;

	/** 下载的图片 **/
	private Bitmap downBitmap;
	
	/** view的Index **/
	private int downIndex;
	
	private int type;
	
	/** 状态,等待下载 **/
	public static final int STATE_WAIT = 0;
	
	/** 状态,正在下载 **/
	public static final int STATE_DOWNLOADING = 1;
	
	/** 状态,完成下载 **/
	public static final int STATE_DOWNLOAD_COMPLETE = 2;
	
	/** 状态,文件已下载，资源正被使用 **/
	public static final int STATE_USE = 3;
	
	/** 状态,资源被释放 **/
	public static final int STATE_RECYLE = 4;
	
	/** 状态,下载出错 **/
	public static final int STATE_ERROR = 5;
	
	/** 下载状态 **/
	private int state = STATE_WAIT;	
	
	public String getFileUrl() {
		return fileUrl;
	}
	
	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}
	
	public String getFileName() {
		return fileName;
	}
	
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	
	public Bitmap getDownBitmap() {
		return downBitmap;
	}
	
	public void setDownBitmap(Bitmap downBitmap) {
		this.downBitmap = downBitmap;
	}
	
	public int getDownIndex() {
		return downIndex;
	}
	
	public void setDownIndex(int downIndex) {
		this.downIndex = downIndex;
	}
	
	public int getState(){
		return state;
	}
	
	public void setState(int state){
		this.state = state;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
}
